package com.huaguoguo.spring.context.config;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;

/**
 * 配置类中的bean定义
 */
public class ConfigurBeanDefinition extends BeanDefinition{

    /**
     * 所属的父类
     */
    private String parentBeanName;

    /**
     * 创建对象执行的方法
     */
    private Method method;

    public String getParentBeanName() {
        return parentBeanName;
    }

    public void setParentBeanName(String parentBeanName) {
        this.parentBeanName = parentBeanName;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "ConfigurBeanDefinition{" +
                "parentBeanName='" + parentBeanName + '\'' +
                ", method=" + method +
                ", beanName='" + beanName + '\'' +
                ", beanType=" + beanType +
                '}';
    }
}
